#include "../shared/NetworkPacket.h"

configuration GameNodeAppC
{
}
implementation
{
	components new TimerMilliC();
	components new HamamatsuS1087ParC() as PhotoC;

/* Should need to change the ID set to AM_HUB_ID for testing purposes*/
	components new AMSenderC(AM_HUB_ID);
	components new AMReceiverC(AM_HUB_ID);

	components MainC;
	components GameNodeP;
	components ActiveMessageC;
	components LedsC;

	GameNodeP.Boot -> MainC;
	GameNodeP.AMSend -> AMSenderC;
	GameNodeP.Receive -> AMReceiverC;
	GameNodeP.Packet -> AMSenderC;
	GameNodeP.AMPacket -> AMSenderC;
	GameNodeP.Timer -> TimerMilliC;
	GameNodeP.PhotoSensor -> PhotoC;
	GameNodeP.RadioPowerControl -> ActiveMessageC;
	GameNodeP.Leds -> LedsC;
}
